<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD><TITLE></TITLE>
<link type="text/css" href="/inc/css/sty_css.css"rel="stylesheet"></link>
</HEAD>
<body>
<div id="page">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top">
<div class="right_silder" id="right_silder">
<div class="cont_detail">
	<div class="h35">
		<div style="margin-right: 20px; font-weight:bold;" class="clickbutton l">用户信息</div>
		<div style="padding-top: 5px;" class="r"><a id="write" href="/company/${company_type }/newCompany.do">添加新公司</a></div>
	</div>
	<!-- 列表内容 begin-->
	<div style="width: 100%; float: left;">
		<div class="title_info" style="width:99%;">
			<ul>
                <li style="width: 20%;">公司名称</li>
				<li style="width: 20%;">公司编号 </li>
				<li style="width: 20%;"> 业务负责人 </li>
                <li style="width: 20%;">联系方式</li>
				<li style="width: 10%;"> 编辑 </li>
				<li style="width: 10%;"> 删除 </li>
			</ul>
		</div>
		<div id="focuedetail" class="focuedetail">
			<div id="fdbody" style="width:99%;">
			<c:forEach var="company" items="${result}" >
				<ul>
                    <c:if test="${company.company_type==1}">
                        <li style="width: 20%;"><a href="/company/indexPara/${company.company_num }.do">${company.company_name }</a></li>
                    </c:if>
                    <c:if test="${company.company_type!=1}">
                        <li style="width: 20%;">${company.company_name }</li>
                    </c:if>
					<li style="width: 20%;">${company.company_num }</li>
					<li style="width: 20%;">${company.principal_name }</li>
					<li style="width: 20%;">${company.principal_phone }</li>
					<li style="width: 10%;"><a href="/company/editCompany.do?id=${company.id }">更改</a></li>
					<li style="width: 10%;"><a href="/company/delCompany.do?id=${company.id }&company_type=${company_type}" onclick="fCheck();">删除</a></li>
				</ul>
    		</c:forEach>
			</div>
		</div>

	<!-- 列表 end-->
	</div>
</div>
</div>
</td>
</tr>
</table>
</div>
</body>
<script>
	function fCheck(){
		return window.confirm("你确定要删除吗？");
	}
</script>
</html>
